// 审批流程接口返回类型
export interface ApprovalProcess {
  id: number
  pId: number
  name: string
  remark: string
  postsId: string
  deptId: string
  activityId: string | null
  createdAt?: string
  updatedAt?: string
  children?: ApprovalProcess[]
  dept?: {
    name: string
  }
  posts?: {
    name: string
  }
}

// 审批流程请求参数类型
export interface ApprovalProcessParams {
  id?: number
  pId: number
  name: string
  remark: string
  postsId: string
  deptId: string
  activityId?: string | null
}

// API 响应类型
export interface ApiResponse<T> {
  code: number
  result: T
  message: string
}
